package com.ruoyi.reportsnhnt.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.utils.BigDecimalUtil;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 混凝土抗压弹性模量试验检测记录详情业务对象 report_snhnt_kytxml_ba_detail
 *
 * @author zxs
 * @date 2024-06-21
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ReportSnhntKytxmlBaDetailBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 主表id
     */
    @NotNull(message = "主表id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long excelId;

    /**
     * 试件编号
     */
    @NotBlank(message = "试件编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String shijbh;

    /**
     * 试件尺寸(mm)长x宽x高
     */
    @NotBlank(message = "试件尺寸(mm)长x宽x高不能为空", groups = { AddGroup.class, EditGroup.class })
    private String shijcc;

    /**
     * 极限荷载(kN)
     */
    @NotNull(message = "极限荷载(kN)不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal jixhz;
    public void setJixhz(BigDecimal jixhz){
        this.jixhz = BigDecimalUtil.stpTrailZero(jixhz);
    }

    /**
     * 承压面积(mm2)
     */
    @NotBlank(message = "承压面积(mm2)不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal chengymj;

    /**
     * 轴心抗压强度(MPa)
     */
    @NotNull(message = "轴心抗压强度(MPa)不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal zhouxkyqd;

    /**
     * 换算系数
     */
    @NotNull(message = "换算系数不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal huansxs;

    /**
     * 抗弯拉强度平均(MPa)
     */
    @NotNull(message = "抗弯拉强度平均(MPa)不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal zhouxkyqdpj;

    /**
     * 终荷载(kN)
     */
    @NotNull(message = "终荷载(kN)不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal zhonghz;

    /**
     * 初荷载(kN)
     */
    @NotNull(message = "初荷载(kN)不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal chuhz;

    /**
     * 测量标距(mm)
     */
    @NotNull(message = "测量标距(mm)不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal celbj;

    /**
     * 试件承压面积(mm³)
     */
    @NotNull(message = "试件承压面积(mm³)不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal shijcymj;

    /**
     * 对中时左(0.001mm)
     */
    @NotNull(message = "对中时左(0.001mm)不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal duizsz;

    /**
     * 对中时右(0.001mm)
     */
    @NotNull(message = "对中时右(0.001mm)不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal duizsy;

    /**
     * 测试时左(0.001mm)
     */
    @NotNull(message = "测试时左(0.001mm)不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal cessz;

    /**
     * 测试时右
     */
    @NotNull(message = "测试时右不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal cessy;

    /**
     *
     */
    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String kangytxml;

    /**
     * dertn
     */
    @NotNull(message = "dertn不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal dertn;

    /**
     * 抗压弹性模量平均值(MPa)
     */
    @NotNull(message = "抗压弹性模量平均值(MPa)不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal kangytxmlpjz;

    /**
     * 弹性模量检测后试件尺寸(mm)长x宽x高
     */
    @NotBlank(message = "弹性模量检测后试件尺寸(mm)长x宽x高不能为空", groups = { AddGroup.class, EditGroup.class })
    private String shijcch;

    /**
     * 弹性模量检测后极限荷载(kN)
     */
    @NotNull(message = "弹性模量检测后极限荷载(kN)不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal jixhzh;

    /**
     * 弹性模量检测后承压面积(mm2)
     */
    @NotBlank(message = "弹性模量检测后承压面积(mm2)不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal chengymjh;

    /**
     * 弹性模量检测后轴心抗压强度(MPa)
     */
    @NotNull(message = "弹性模量检测后轴心抗压强度(MPa)不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal zhouxkyqdh;

    /**
     * 弹性模量检测后换算系数
     */
    @NotNull(message = "弹性模量检测后换算系数不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal huansxsh;

    /**
     * 弹性模量检测后抗弯拉强度平均(MPa)
     */
    @NotNull(message = "弹性模量检测后抗弯拉强度平均(MPa)不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal zhouxkyqdpjh;


}
